package com.i2works.smartluolong.manage.dal.admin.dao;


import com.i2works.smartluolong.manage.entity.admin.AdminOrgDO;
import com.i2works.smartluolong.manage.entity.admin.AdminOrgQuery;
import com.i2works.smartluolong.manage.entity.admin.AdminUserOrgDO;
import com.i2works.smartluolong.utils.basecommon.BaseCommonDAO;
import com.i2works.smartluolong.utils.exception.DAOException;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 组织机构DAO接口
 *
 * @author koal koal@vip.qq.com
 * @date 2018年03月26日 下午14:48:29
 */

@Mapper
@Repository("adminOrgDAO")
public interface IAdminOrgDAO extends BaseCommonDAO<AdminOrgQuery, AdminOrgDO> {
    /**
     * 查询组织架构树
     */
    List<AdminOrgDO> queryTreeList(AdminOrgQuery query) throws DAOException;

    /**
     * 更新用户与组织架构关系表状态
     */
    void updateUserOrgStatus(AdminUserOrgDO adminUserOrgDO) throws DAOException;


}
